import { originInstallationVo, originInstallationQuery, originInstallationForm } from '@/api/bomCompareTool/originInstallationList/type';
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
// 上传原始装机清单
export const uploadOriginListData = (aircraftModel: string, data: FormData) => {
  return request({
    url: `/biz/bom/upload-original/${aircraftModel}`,
    method: 'post',
    data: data,
    headers: {
      'Content-type': 'multipart/form-data'
    }
  });
};
// 分页查询原始装机清单文件列表
export const getOriginList = (query: originInstallationQuery): AxiosPromise<originInstallationVo[]> => {
  return request({
    url: `/biz/bom/list-original/${query.aircraftModel}`,
    method: 'get',
    params: query
  });
};
